/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package vmwapplication.parser.solver;

/**
 * trida zabaluje nalezeny vysledek pro hledany podstring
 * @author marek
 */
public class Result implements Comparable<Result> {
    
    private String aligmentA;
    private String aligmentB;
    private String slashes;
    private Integer aligmentValue;
    
    public Result() {
        
    }
    
    public Result(String aligmentA, String aligmentB, String slahes, Integer aligmentV) {
        this.aligmentA = aligmentA;
        this.aligmentB = aligmentB;
        this.slashes = slahes;
        this.aligmentValue = aligmentV;
    }

    public Integer getAligmentValue() {
        return aligmentValue;
    }

    public void setAligmentValue(Integer aligmentValue) {
        this.aligmentValue = aligmentValue;
    }

    
    public String getSlashes() {
        return slashes;
    }

    public void setSlashes(String slashes) {
        this.slashes = slashes;
    }

    public String getAligmentA() {
        return aligmentA;
    }

    public void setAligmentA(String aligmentA) {
        this.aligmentA = aligmentA;
    }

    public String getAligmentB() {
        return aligmentB;
    }

    public void setAligmentB(String aligmentB) {
        this.aligmentB = aligmentB;
    }

    public int compareTo(Result o) {
       if(o == null){
           return 1;
       }
       return this.aligmentValue.compareTo(o.getAligmentValue());
    }
    
}
